<?php echo $this->partial('partials/admin.phtml'); ?>
<?php
$result = "<table><tr><th>Category Name</th><th>Discription</th></tr>";
foreach ($this->data as $category) {
    $result.="<tr><td>".$category['name']."</td><td>".$category['discription']."</td><td><a href='".$this->baseUrl()."/admin/categoryedit/id/$category[id]' style='text-decoration: none'>Edit</a></td><td><a href='".$this->baseUrl()."/admin/categorydelete/id/$category[id]' style='text-decoration: none'>Delete</a></td></tr>";
}
$result .="</table>";
echo $result;
echo "<a href='".$this->baseUrl()."/admin/categorynew' style='text-decoration: none'>New Category</a>";
echo $this->paginationControl($this->data,
        'Sliding',
        'partials/pagination-control.phtml');
